package com.yojcodesendbox.codesendbox;

import com.yojcodesendbox.model.ExecuteCodeRequest;
import com.yojcodesendbox.model.ExecuteCodeResponse;
import lombok.Data;

@Data
public abstract class CodeSandbox {

    public String compilCmd;

    public String execmdStringFormat;

    public String fileTail;

    /**
     * 执行程序
     * @param executeCodeRequest
     * @return
     */
    public abstract ExecuteCodeResponse executeCode(ExecuteCodeRequest executeCodeRequest);
}
